import request from '/@/utils/request';

// 查询中介信息（房屋、车位）订单列表
export function listOrder(query?: Object) {
  return request({
    url: 'module//lease/order/list',
    method: 'get',
    params: query
  })
}

// 查询中介信息（房屋、车位）订单详细
export function getOrder(id?: number) {
  return request({
    url: 'module//lease/order/' + id,
    method: 'get'
  })
}

// 新增中介信息（房屋、车位）订单
export function addOrder(data?: Object) {
  return request({
    url: 'module//lease/order',
    method: 'post',
    data: data
  })
}

// 修改中介信息（房屋、车位）订单
export function updateOrder(data?: Object) {
  return request({
    url: 'module//lease/order',
    method: 'put',
    data: data
  })
}

// 删除中介信息（房屋、车位）订单
export function delOrder(id?: number) {
  return request({
    url: 'module//lease/order/' + id,
    method: 'delete'
  })
}

// 导出中介信息（房屋、车位）订单
export function exportOrder(query?: Object) {
  return request({
    url: 'module//lease/order/export',
    method: 'get',
    params: query
  })
}
